package com.lyshop.guiyingshanding.view;


import com.lyshop.guiyingshanding.utils.TimeCount;

public class NewUserModule {

    private static NewUserModule mNewUserModule = null;
    private TimeCount timeCount;

    public static NewUserModule getInstance() {
        if (mNewUserModule == null) {
            synchronized (NewUserModule.class) {
                if (mNewUserModule == null) {
                    mNewUserModule = new NewUserModule();
                }
            }
        }
        return mNewUserModule;
    }

    public void startCountDown(TimeCount.TickListener mTickListener) {
        if (null == timeCount) {
            timeCount = new TimeCount(60 * 60 * 1000, 1000, mTickListener);
        }
        timeCount.start();
    }

    public void stopCountDown() {
        if (null != timeCount) {
            timeCount.finishTimeCount();
            timeCount = null;
        }
    }
}
